<?php

// No direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport('joomla.application.component.controller');

class RcbaseController extends JController
{

	function __construct()
	{
		parent::__construct();

		// Register Extra tasks
		$this->registerTask( 'motorinfo', 'motorinfo' );
	}

	function display()
	{
		$doc =& JFactory::getDocument();
		$doc->addStyleSheet('components/com_rcbase/css/rcbase.css');
		$doc->setTitle( 'База данных по ВМГ' );
		$mainframe =& JFactory::getApplication();
		$pathway   =& $mainframe->getPathway();
		$pathway->addItem('БД ВМГ', '/?option=com_rcbase&view=motorlist');
		parent::display();
	}
}